//package com.jic.market.controller.after;
//
//import com.jic.common.base.vo.RestResult;
//import com.jic.market.api.after.CouponApi;
//import com.jic.market.request.rest.coupon.*;
//import com.jic.market.service.rest.coupon.CouponRestService;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import javax.annotation.Resource;
//import javax.validation.Valid;
//
///**
// * @author: wwb
// * @date: 2020-01-17
// * @remark:
// */
//@RestController
//@RequestMapping("/api/coupon")
//@Api(tags = {"优惠券内部接口"})
//@Slf4j
//public class CouponApiController implements CouponApi {
//
//    @Resource
//    private CouponRestService couponRestService;
//
//    @Override
//    @PostMapping("/update-status-couponCodes")
//    @ApiOperation(value = "更新优惠券状态-使用/退回")
//    public RestResult<Boolean> updateStatusByCouponCodes(@Valid @RequestBody CouponStatusRequest couponStatusRequest) {
//        return RestResult.success(couponRestService.updateStatusByCouponCodes(couponStatusRequest));
//    }
//
//    @Override
//    @PostMapping("/queryMyCouponsCount")
//    @ApiOperation(value = "查询我的优惠券数量")
//    public RestResult<Integer> queryMyCouponsCount(@RequestBody Long memberId) {
//        return couponRestService.queryMyCouponCount(memberId);
//    }
//}
